package com.xianggu.designMode.chainMethod.demo02.impl;

import com.xianggu.designMode.chainMethod.demo02.Handler;
import com.xianggu.designMode.chainMethod.demo02.LeaveRequest;

/**
 * @author chengjy
 * @date 2025/3/15
 */
public class GroupLeader extends Handler {
    public GroupLeader() {
        super(0, Handler.ONE);
        setJob("开发组长");
    }


    @Override
    public void audit(LeaveRequest leaveRequest) {
        String text = "姓名：%s \r\n 请假原因：%s \r\n 请假天数：%s \r\n 审批人：%s";
        System.out.println(String.format( text ,
                leaveRequest.getName(), leaveRequest.getText() , leaveRequest.getLeaveDay() , getJob()));
    }
}
